package com.common.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class RoleInfoPO extends BasePO implements Serializable {

    @ApiModelProperty(value = "父id",name = "pid",example = "1",required=true)
    private Integer pid;
    @ApiModelProperty(value = "角色",name = "name",example = "user",required=true)
    private String name;
    @ApiModelProperty(value = "启用状态：0->禁用；1->启用",name = "state",example = "1",required=true)
    private Integer state;
    @ApiModelProperty(value = "是否展示0-不展示 1-展示",name = "visible",example = "1",required=false)
    private Boolean visible;
    @ApiModelProperty(value = "角色中文名称",name = "description",example = "普通用户",required=true)
    private String description;

    public RoleInfoPO() {
    }

    private static final long serialVersionUID = 1L;

    @Builder
    public RoleInfoPO(Integer id, Date createTime, Date updateTime, String creator, Integer creatorId, String updator, Boolean deleted, Integer version, Integer pid, String name, Integer state, Boolean visible, String description) {
        super(id, createTime, updateTime, creator, creatorId, updator, deleted, version);
        this.pid = pid;
        this.name = name;
        this.state = state;
        this.visible = visible;
        this.description = description;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Boolean getVisible() {
        return visible;
    }

    public void setVisible(Boolean visible) {
        this.visible = visible;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }
}